package com.ruoyi.background.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 积分记录对象 app_grade_record
 * 
 * @author susu
 * @date 2024-08-18
 */
public class AppGradeRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 0收入 1支出 */
    @Excel(name = "0收入 1支出")
    private Integer type;

    /** 分值 */
    @Excel(name = "分值")
    private Integer grade;

    /** 改变前的分数 */
    @Excel(name = "改变前的分数")
    private Integer beforeGrade;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setType(Integer type) 
    {
        this.type = type;
    }

    public Integer getType() 
    {
        return type;
    }
    public void setGrade(Integer grade) 
    {
        this.grade = grade;
    }

    public Integer getGrade() 
    {
        return grade;
    }
    public void setBeforeGrade(Integer beforeGrade) 
    {
        this.beforeGrade = beforeGrade;
    }

    public Integer getBeforeGrade() 
    {
        return beforeGrade;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("type", getType())
            .append("grade", getGrade())
            .append("beforeGrade", getBeforeGrade())
            .append("remark", getRemark())
            .append("createTime", getCreateTime())
            .toString();
    }
}
